<?php
require_once "./Content.php";

$str = "<p>进程啊，php笑话百度</p>
<img alt='进程'/>
<a href='http://www.baidu.com/hh'>hahahah</a>
<p><strong class=\"last\">百度时进程</strong></p>
<p>运行的时候，守护进程成一个百度进程。守护进程代码：</p>";

$keywordArray = array(
    array('进程', 'http://www.zhoumuhao.com/'),
    array('守护进程', 'http://love.zhoumuhao.com'),
    array('百度', 'http://warning.zhoumuhao.com'),
    array('hh', 'http://warning.zhoumuhao.com'),
);

$c = new Content($str, $keywordArray,3);
$newContent = $c->addKeywordLink();
print $newContent;
